package com.demo.service.app.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.demo.service.app.pojo.TabCloud;
import com.demo.service.app.service.TabCloudService;

@RestController
@RequestMapping("/tabCloud")
public class TabCloudController {
	
	@Autowired
	private TabCloudService tabCloudService;
	
	@RequestMapping("/add")
	public int add(@RequestBody TabCloud tabCloud) {
		return tabCloudService.add(tabCloud);
	}
	@RequestMapping("/batchAdd")
	public void batchAdd() {
		tabCloudService.batchAdd();
	}

}
